package com.atguigu.gulimall.product.dao;

import com.atguigu.gulimall.product.entity.AttrAttrgroupRelationEntity;
import com.atguigu.gulimall.product.entity.AttrEntity;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 属性&属性分组关联
 * 
 * @author zhouh
 * @email zh69144@aliyun.com
 * @date 2022-02-03 16:18:42
 */
@Mapper
public interface AttrAttrgroupRelationDao extends BaseMapper<AttrAttrgroupRelationEntity> {

    List<AttrAttrgroupRelationEntity> selectList(long attrgroupId);

    List<AttrAttrgroupRelationEntity> selectByList(@Param("relationIds") List<Long> relationIds);

    void deleteBatchRelation(@Param(value = "entities") List<AttrAttrgroupRelationEntity> entities);
}
